<%@ page import="com.medranocg.gd.DocumentType" %>



<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'uploadNotificationEmailAddress', 'error')} ">
	<label for="uploadNotificationEmailAddress">
		<g:message code="documentType.uploadNotificationEmailAddress.label" default="Upload Notification Email Address" />
		
	</label>
	<g:textField name="uploadNotificationEmailAddress" value="${documentTypeInstance?.uploadNotificationEmailAddress}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'daysInAdvanceForNotice', 'error')} required">
	<label for="daysInAdvanceForNotice">
		<g:message code="documentType.daysInAdvanceForNotice.label" default="Days In Advance For Notice" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="daysInAdvanceForNotice" type="number" value="${documentTypeInstance.daysInAdvanceForNotice}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'defaultLastingMonths', 'error')} required">
	<label for="defaultLastingMonths">
		<g:message code="documentType.defaultLastingMonths.label" default="Default Lasting Months" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="defaultLastingMonths" type="number" value="${documentTypeInstance.defaultLastingMonths}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'fileTypes', 'error')} ">
	<label for="fileTypes">
		<g:message code="documentType.fileTypes.label" default="File Types" />
		
	</label>
	
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'hasExpiration', 'error')} ">
	<label for="hasExpiration">
		<g:message code="documentType.hasExpiration.label" default="Has Expiration" />
		
	</label>
	<g:checkBox name="hasExpiration" value="${documentTypeInstance?.hasExpiration}" />
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="documentType.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${documentTypeInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'purgeable', 'error')} ">
	<label for="purgeable">
		<g:message code="documentType.purgeable.label" default="Purgeable" />
		
	</label>
	<g:checkBox name="purgeable" value="${documentTypeInstance?.purgeable}" />
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'shortName', 'error')} ">
	<label for="shortName">
		<g:message code="documentType.shortName.label" default="Short Name" />
		
	</label>
	<g:textField name="shortName" value="${documentTypeInstance?.shortName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: documentTypeInstance, field: 'versionable', 'error')} ">
	<label for="versionable">
		<g:message code="documentType.versionable.label" default="Versionable" />
		
	</label>
	<g:checkBox name="versionable" value="${documentTypeInstance?.versionable}" />
</div>

